package com.aaa.hospital.ManagementEnd.mapper;

import com.aaa.hospital.ManagementEnd.pojo.DrugGathering;
import com.aaa.hospital.ManagementEnd.pojo.VisitingCard;
import com.aaa.hospital.ManagementEnd.util.MecharDB;
import com.aaa.hospital.ManagementEnd.util.MedicineCharge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MedChargeDao {
//通过处方单号进行查询该患者开具药品
        List<MedicineCharge>  MedChargeAll(Integer diaid);

//取藥收費記錄
 boolean dginsert(DrugGathering drugGathering);

//患者卡号，余额
    VisitingCard Byvisid(Integer visid);

    //扣除金额
    boolean  visprice(@Param("visid") Integer visid,@Param("price") Integer price);
    //修改药单状态
    boolean   ydstate(Integer diaid);



    //收费详情
    List<MecharDB> queryList();
   //药品查询，与上一起用
   List<MedicineCharge>  queryListById(Integer diaid);
    //药品查询，与上一起用
    List<MecharDB>  queryListlimit(String name);
}
